package com.ludomancy.breathe;

public class Couch extends RoomObject
{

	public Couch(int position)
	{
		super(position);
	}

	public void doTurn()
	{
	}

	public void onBump()
	{
		String response = "You stumble into your couch.";
		if(!Game.game.isOutOfControl() && !Game.game.windowBlocked)
		{
			response += " Maybe you can block the window with it by pushing it.";
			Game.game.addOption(Game.push);
		}
		Game.game.addResponse(response);
	}

	public void processOption(Option option)
	{
		if(option == Game.push)
		{
			if(Game.game.freeHand)
			{
				Game.game.addResponse("You move the couch with your right hand until it hits the window glass.");
				position = Game.BALCONY;
				Game.game.windowBlocked = true;
			}
			else
			{
				Game.game.addResponse("You try to move the couch with your legs, but it's useless. You will need your hands.");
			}
		}
	}

	public boolean isPassable()
	{
		return false;
	}
}
